import api from '../../utils/api.js';//这个里面封装了request方法

getUserInfoById:(userId)=>{
  console.log('getUserInfoById');
    const url = 'users/'+userId;
      api.get(url, {
      data: ''
    }).then(res => {
      //得到的数据
      let { code, data, message } = res;
      let { arrys } = data; 
      console.log(res);
    }).catch(err => {
      wx.showToast({
        title: err.message,
        icon: 'none'
      })
    })
}